// 权限设置调用的接口

import request from '@/utils/request'

//查询角色数据
export function get_RoleList(data) {
  return request({
    url: '/api/role/listAll',
    method: 'post',
    data : data
  })
}
//添加角色
export function add_Role(data) {
  return request({
    url: '/api/role/save',
    method: 'post',
    data : data
  })
}
//修改角色
export function edit_Role(data) {
  return request({
    url: '/api/role/edit',
    method: 'post',
    data : data
  })
}
//修改角色
export function del_Role(data) {
  return request({
    url: '/api/role/delete',
    method: 'post',
    data : data
  })
}
//添加角色下的成员
export function add_UsersRole(data) {
  return request({
    url: '/api/role/editUsersRole',
    method: 'post',
    data : data
  })
}
//POST /api/role/editUsersRole
export function deleteUsersRole(data) {
  return request({
    url: '/api/role/deleteUsersRole',
    method: 'post',
    data : data
  })
}
